package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.*;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 机构表
 *
 * @author niliwei
 * @date 2020-04-07 16:30:40
 */
@Data
@NoArgsConstructor
@Table("db_org")
@ApiModel("机构表")
public class DbOrg implements Entity {

    @TableId(value = "id", type = IdType.GUID)
    private String id;

    @TableColumn(remarks = "编码", nullable = false)
    @TableFinal
    @TableUk
    private String code;

    @TableColumn(remarks = "名称")
    private String name;

    @TableColumn(remarks = "机构法人")
    private String corporate;

}
